#!/usr/bin/python
# coding=utf-8
import time


class SourceCode:
    def __init__(self):
        print "violin图表生成类！"

    @staticmethod
    def get():
        time.sleep(1)
        return SourceCode.getTime()

    @staticmethod
    def getTime():
        return time.time()

    @staticmethod
    def read_file_line(file):
        all = []
        with open(file) as data:
            for i in data:
                da = i.split("\r\n")[0]
                num = int(da)
                all.append(num)
        return all

    @staticmethod
    def savestr(str, name):
        with open("/Users/Vicky/Documents/workspace/source_api/long/" + name + ".log", 'w') as f:
            f.write(str)

if __name__ == "__main__":
    a = SourceCode.getTime();
    print a
    b = SourceCode.get()
    print b
